package com.wzy.ldap;

import com.wzy.ldap.initializer.SecondInitializer;
import com.wzy.ldap.ioc.ann.MyBeanImport;
import com.wzy.ldap.listener.SecondListener;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;

@SpringBootApplication
@Import(MyBeanImport.class)
public class LdapApplication {
    public static void main(String[] args) {
//        SpringApplication.run(LdapApplication.class, args);
        SpringApplication springApplication = new SpringApplication(LdapApplication.class);
        springApplication.addInitializers(new SecondInitializer());
        springApplication.addListeners(new SecondListener());
        springApplication.run(args);
    }
}
